package com.mapper;

import com.dto.CreatorStatDTO;
import com.dto.StatDTO;
import com.dto.StateStatDTO;
import com.entity.Client;
import com.entity.Employee;
import com.entity.GoodsEntity;
import com.entity.Order;
import com.vo.OrderVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {
    List<Order> selectAll(OrderVO orderVO);
    void add(Order order);
    void dalete(@Param("oids") int[] oids);
    void update(Order order);

    List<String> selectOrderNumber();
    void updateState(@Param("oid") int oid, @Param("earnest") int earnest, @Param("unpatdamount") int unpatdamount, @Param("state") String state);
    void addRid(@Param("rid") Integer rid, @Param("oid") Integer oid);
    List<CreatorStatDTO> selectCreatorByOrderTime(String month);
    List<StateStatDTO> selectStateByOrderTime(String month);

    int selectByCreatorAndOrdertime(@Param("time") String time, @Param("creator") String creator);
    Employee selectByEname(String ename);
    GoodsEntity selectByGname(String gname);
}
